﻿namespace DesignModeConsole.创建型.抽象工厂模式.Sample2
{
    /// <summary>
    /// 计算美国个人奖金
    /// </summary>
    public class AmericanBonus : Bonus
    {
        public double Calculate()
        {
            return SalaryConst.BaseSalary * 0.1;
        }
    }

    /// <summary>
    /// 计算美国个人所得税
    /// </summary>
    public class AmericanTax : Tax
    {
        public double Calculate()
        {
            return (SalaryConst.BaseSalary + SalaryConst.BaseSalary * 0.1) * 0.4;
        }
    }
}